package com.tzy.spi.extend;

import com.tzy.spi.core.SpiLoader;

public class DefaultSpiExtension implements SpiExtension {

    @Override
    public <T> T getExtendBean(ExtendObj extendObj, Class<T> type) {
        return SpiLoader.loadInterface(type).getBean(extendObj.getBeanName());
    }
}
